home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwat06.dir / 00126_Script_126 < prev    next >
Text File  |  1994-11-15  |  12KB  |  340 lines

  1. on startMovie
  2.   global nowFrame, lastFrame, currMM, reEntry, stateOn, stepNow, dialogOn
  3.   global rolledAlready, thumbTrack, showText, switchState,jmpFrame
  4.   set dialogOn = FALSE
  5.   set stepNow = FALSE
  6.   set switchState = FALSE
  7.   set stateOn = FALSE
  8.   set rolledAlready = FALSE
  9.   set showText = FALSE
  10.   set nowFrame = "atusa000000n°°"
  11.   set currMM = "FLWWW"
  12.   puppetSprite 21, TRUE
  13.   puppetSprite 22, TRUE
  14.   puppetSprite 23, TRUE
  15.   set the immediate of sprite 23 to TRUE
  16.   set the stretch of sprite 23 to FALSE
  17.   if reEntry = TRUE then
  18.     reSetLocals
  19.   end if
  20.   set the keyDownScript to "if dialogOn = TRUE then if the keyCode = 13 then closeDialog"
  21. end startMovie
  22.  
  23. on stepMovie
  24.   global nowFrame,currFrame
  25.   if nowFrame  <> currFrame then
  26.     seeAlsoList
  27.     set currFrame = nowFrame
  28.   end if
  29. end stepMovie
  30.  
  31. on stopMovie
  32.   put " " into field "seeAlsoText"
  33. end stopMovie
  34.  
  35. on reSetLocals
  36.   global reEntry
  37.   puppetSprite 10, TRUE
  38.   set reEntry = FALSE
  39. end reSetLocals
  40.  
  41. on scrollRoll
  42.   global switchState
  43.   
  44.   if rollover(13) then
  45.     set the forecolor of sprite 13 to 228
  46.   else
  47.     set the forecolor of sprite 13 to 255
  48.   end if
  49.   
  50.   if rollover(14) then
  51.     set the forecolor of sprite 14 to 228
  52.   else
  53.     set the forecolor of sprite 14 to 255
  54.   end if
  55.   
  56.   
  57.   if the frame > 14 and the frame < 28 then
  58.     if the castNum of sprite 7 = 443 then
  59.       if the castNum of sprite 13 <> the number of cast "nextTxUp" then
  60.         set the castNum of sprite 13 to the number of cast "nextTxRt"
  61.       end if
  62.       set the castNum of sprite 14 to the number of cast "prevTxNull"
  63.     else if the castNum of sprite 7 = 442 then
  64.       set the castNum of sprite 13 to the number of cast "nextTxNull"
  65.       if the castNum of sprite 14 <> the number of cast "prevTxUp" then
  66.         set the castNum of sprite 14 to the number of cast "prevTxRt"
  67.       end if
  68.     end if
  69.   end if
  70.   
  71.   if the frame > 31 and the frame < 81 then
  72.     if the castNum of sprite 7 = 440 then
  73.       if the castNum of sprite 13 <> the number of cast "nextTxUp" then
  74.         set the castNum of sprite 13 to the number of cast "nextTxRt"
  75.       end if
  76.       set the castNum of sprite 14 to the number of cast "prevTxNull"
  77.     else if the castNum of sprite 7 = 436 then
  78.       set the castNum of sprite 13 to the number of cast "nextTxNull"
  79.       if the castNum of sprite 14 <> the number of cast "prevTxUp" then
  80.         set the castNum of sprite 14 to the number of cast "prevTxRt"
  81.       end if
  82.     else
  83.       if the castNum of sprite 13 <> the number of cast "nextTxUp" then
  84.         set the castNum of sprite 13 to the number of cast "nextTxRt"
  85.       end if
  86.       if the castNum of sprite 14 <> the number of cast "prevTxUp" then
  87.         set the castNum of sprite 14 to the number of cast "prevTxRt"
  88.       end if
  89.     end if
  90.   end if
  91.   
  92.   if the frame > 126 and the frame < 153 then
  93.     if the castNum of sprite 7 = 419 then
  94.       if the castNum of sprite 13 <> the number of cast "nextTxUp" then
  95.         set the castNum of sprite 13 to the number of cast "nextTxRt"
  96.       end if
  97.       set the castNum of sprite 14 to the number of cast "prevTxNull"
  98.     else if the castNum of sprite 7 = 417 then
  99.       set the castNum of sprite 13 to the number of cast "nextTxNull"
  100.       if the castNum of sprite 14 <> the number of cast "prevTxUp" then
  101.         set the castNum of sprite 14 to the number of cast "prevTxRt"
  102.       end if
  103.     else
  104.       if the castNum of sprite 13 <> the number of cast "nextTxUp" then
  105.         set the castNum of sprite 13 to the number of cast "nextTxRt"
  106.       end if
  107.       if the castNum of sprite 14 <> the number of cast "prevTxUp" then
  108.         set the castNum of sprite 14 to the number of cast "prevTxRt"
  109.       end if
  110.     end if
  111.   end if
  112.   
  113.   updateStage
  114. end scrollRoll
  115.  
  116. on multiScreenPup
  117.   puppetSprite 7, TRUE
  118.   puppetSprite 8, TRUE
  119.   puppetSprite 11, TRUE
  120.   puppetSprite 13, TRUE
  121.   puppetSprite 14, TRUE
  122. end multiScreenPup
  123.  
  124. on saveLocals
  125.   global lastFrame, nowFrame, lastMovie
  126.   set lastFrame = nowFrame
  127.   set lastMovie = "FLWAT"
  128. end saveLocals
  129.  
  130. on buttonState
  131.   global FrankNav
  132.   global thumbTrack, thumbFrame, bflag, dialogOn
  133.   
  134.   if dialogOn = FALSE then
  135.     
  136.     glassCheck
  137.     scrollRoll
  138.     
  139.     -- don't check global buttons unless mouse is down at bottom
  140.     if (the mouseV > 300) or (bFlag = TRUE) then
  141.       FrankNav(doState)
  142.     end if
  143.   end if
  144. end buttonState
  145.  
  146. on atForStep
  147.   puppetSprite 7, FALSE
  148.   puppetSprite 8, FALSE
  149.   puppetSprite 11, FALSE
  150.   puppetSprite 13, FALSE
  151.   puppetSprite 14, FALSE
  152.   if the frame = 152 then
  153.     go to frame 6
  154.   else if the frame > 195 then
  155.     go to frame 170
  156.   else
  157.     go to marker(+1)
  158.   end if
  159.   updateStage
  160. end atForStep
  161.  
  162. on atBackStep
  163.   puppetSprite 7, FALSE
  164.   puppetSprite 8, FALSE
  165.   puppetSprite 11, FALSE
  166.   puppetSprite 13, FALSE
  167.   puppetSprite 14, FALSE
  168.   if the frame = 6 then
  169.     go to frame 152
  170.   else if the frame = 170 then
  171.     go to frame 196
  172.   else
  173.     go to marker(-1)
  174.   end if
  175.   updateStage
  176. end atBackStep
  177.  
  178. on textRoll txHt
  179.   global origLocV, rolledAlready, topHat, horNess, dialogOn, SeeAlsoBox
  180.   if dialogOn = FALSE and SeeAlsoBox = FALSE then
  181.     set topHat = txHt
  182.     if rolledAlready = FALSE then
  183.       set origLocV = the locV of sprite 8
  184.     end if
  185.     
  186.     if the mouseH < 414 and the mouseV > 366 and the mouseV < 429 then
  187.       set the locV of sprite 8 to txHt
  188.       set rolledAlready = TRUE
  189.     else if the mouseH > 414 or the mouseV > 429 or the mouseV < topHat then
  190.       set the locV of sprite 8 to origLocV
  191.     end if
  192.   end if
  193. end textRoll
  194.  
  195. on usaRoll
  196.   global stateOn
  197.   if rollover(2) then
  198.     if the mouseH > 273 and the mouseH < 300 and the mouseV > 213 and the mouseV < 255 then
  199.       set the castNum of sprite 9 to the number of cast A26
  200.       set the castNum of sprite 8 to the number of cast G17
  201.     else if the mouseH > 84 and the mouseH < 131 and the mouseV > 188 and the mouseV < 243 then
  202.       set the castNum of sprite 9 to the number of cast A27
  203.       set the castNum of sprite 8 to the number of cast G18
  204.     else if the mouseH > 38 and the mouseH < 94 and the mouseV > 131 and the mouseV < 224 then
  205.       set the castNum of sprite 9 to the number of cast A28
  206.       set the castNum of sprite 8 to the number of cast G21
  207.     else if the mouseH > 237 and the mouseH < 263 and the mouseV > 113 and the mouseV < 148 then
  208.       set the castNum of sprite 9 to the number of cast A57
  209.       set the castNum of sprite 8 to the number of cast G44
  210.     else if the mouseH > 280 and the mouseH < 343 and the mouseV > 243 and the mouseV < 291 then
  211.       set the castNum of sprite 9 to the number of cast A31
  212.       set the castNum of sprite 8 to the number of cast G22
  213.     else if the mouseH > 248 and the mouseH < 276 and the mouseV > 150 and the mouseV < 199 then
  214.       set the castNum of sprite 9 to the number of cast A32
  215.       set the castNum of sprite 8 to the number of cast G23
  216.     else if the mouseH > 272 and the mouseH < 293 and the mouseV > 154 and the mouseV < 191 then
  217.       set the castNum of sprite 9 to the number of cast A33
  218.       set the castNum of sprite 8 to the number of cast G24
  219.     else if the mouseH > 215 and the mouseH < 257 and the mouseV > 142 and the mouseV < 170 then
  220.       set the castNum of sprite 9 to the number of cast A34
  221.       set the castNum of sprite 8 to the number of cast G25
  222.     else if the mouseH > 178 and the mouseH < 230 and the mouseV > 172 and the mouseV < 200 then
  223.       set the castNum of sprite 9 to the number of cast A35
  224.       set the castNum of sprite 8 to the number of cast G26
  225.     else if the mouseH > 325 and the mouseH < 360 and the mouseV > 161 and the mouseV < 178 then
  226.       set the castNum of sprite 9 to the number of cast A36
  227.       set the castNum of sprite 8 to the number of cast G27
  228.     else if (the mouseH > 250 and the mouseH < 305 and the mouseV > 126 and the mouseV < 158)¼
  229.     or (the mouseV > 106 and the mouseV < 158 and the mouseH > 276 and the mouseH < 305) then
  230.       set the castNum of sprite 9 to the number of cast A41
  231.       set the castNum of sprite 8 to the number of cast G28
  232.     else if the mouseH > 211 and the mouseH < 247 and the mouseV > 93 and the mouseV < 145 then
  233.       set the castNum of sprite 9 to the number of cast A43
  234.       set the castNum of sprite 8 to the number of cast G31
  235.     else if the mouseH > 220 and the mouseH < 267 and the mouseV > 167 and the mouseV < 207 then
  236.       set the castNum of sprite 9 to the number of cast A44
  237.       set the castNum of sprite 8 to the number of cast G32
  238.     else if the mouseH > 320 and the mouseH < 363 and the mouseV > 114 and the mouseV < 154 then
  239.       set the castNum of sprite 9 to the number of cast A45
  240.       set the castNum of sprite 8 to the number of cast G34
  241.     else if the mouseH > 363 and the mouseH < 374 and the mouseV > 108 and the mouseV < 133 then
  242.       set the castNum of sprite 9 to the number of cast A46
  243.       set the castNum of sprite 8 to the number of cast G33
  244.     else if the mouseH > 290 and the mouseH < 319 and the mouseV > 149 and the mouseV < 182 then
  245.       set the castNum of sprite 9 to the number of cast A47
  246.       set the castNum of sprite 8 to the number of cast G35
  247.     else if the mouseH > 171 and the mouseH < 230 and the mouseV > 197 and the mouseV < 229 then
  248.       set the castNum of sprite 9 to the number of cast A48
  249.       set the castNum of sprite 8 to the number of cast G36
  250.     else if the mouseH > 315 and the mouseH < 356 and the mouseV > 142 and the mouseV < 169 then
  251.       set the castNum of sprite 9 to the number of cast A51
  252.       set the castNum of sprite 8 to the number of cast G37
  253.     else if the mouseH > 306 and the mouseH < 341 and the mouseV > 207 and the mouseV < 234 then
  254.       set the castNum of sprite 9 to the number of cast A53
  255.       set the castNum of sprite 8 to the number of cast G38
  256.     else if the mouseH > 142 and the mouseH < 238 and the mouseV > 201 and the mouseV < 295 then
  257.       set the castNum of sprite 9 to the number of cast A54
  258.       set the castNum of sprite 8 to the number of cast G41
  259.     else if the mouseH > 97 and the mouseH < 136 and the mouseV > 145 and the mouseV < 194 then
  260.       set the castNum of sprite 9 to the number of cast A55
  261.       set the castNum of sprite 8 to the number of cast G42
  262.     else if the mouseH > 303 and the mouseH < 355 and the mouseV > 168 and the mouseV < 198 then
  263.       set the castNum of sprite 9 to the number of cast A56
  264.       set the castNum of sprite 8 to the number of cast G43
  265.     else
  266.       set the castNum of sprite 9 to the number of cast A58
  267.       set the castNum of sprite 8 to the number of cast G46
  268.     end if
  269.     updateStage
  270.   end if
  271. end usaRoll
  272.  
  273. on glassCheck
  274.   global stateOn, adjLoc
  275.   
  276.   if the frame > 157 and the frame < 161 then
  277.     if rollover(2) then
  278.       cursor 130
  279.     else
  280.       cursor -1
  281.     end if
  282.   else
  283.     cursor -1
  284.   end if
  285.   
  286.   if the frame < 157 then
  287.     if rollOver(10) then 
  288.       set the castNum of sprite 10 to A13
  289.     else
  290.       set the castNum of sprite 10 to A12
  291.     end if
  292.   end if
  293.   
  294.   updateStage
  295. end glassCheck
  296.  
  297. on dummyScript
  298.   put 2 + 2 into four
  299. end dummyScript
  300.  
  301.  
  302. on ill1
  303.   global switchState
  304.   if switchState = FALSE then
  305.     set the castNum of sprite 7 to the number of cast "ill1"
  306.     set the castNum of sprite 11 to the number of cast G11
  307.   end if
  308. end ill1
  309.  
  310. on ill2
  311.   global switchState
  312.   if switchState = FALSE then
  313.     set the castNum of sprite 7 to the number of cast "ill2"
  314.     set the castNum of sprite 11 to the number of cast G11
  315.   end if
  316. end ill2
  317.  
  318. on ill3
  319.   global switchState
  320.   if switchState = FALSE then
  321.     set the castNum of sprite 7 to the number of cast "ill3"
  322.     set the castNum of sprite 11 to the number of cast G11
  323.   end if
  324. end ill3
  325.  
  326. on ill4
  327.   global switchState
  328.   if switchState = FALSE then
  329.     set the castNum of sprite 7 to the number of cast "ill4"
  330.     set the castNum of sprite 11 to the number of cast G11
  331.   end if
  332. end ill4
  333.  
  334. on ill5
  335.   global switchState
  336.   if switchState = FALSE then
  337.     set the castNum of sprite 7 to the number of cast "ill5"
  338.     set the castNum of sprite 11 to the number of cast G11
  339.   end if
  340. end ill5